package com.chigga.application;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

/**
 * @author DefChigga
 */
@SpringBootApplication(scanBasePackages = {"com.chigga.*"})
@ServletComponentScan  // 启用 Servlet 组件扫描，@WebFilter 过滤器等
@MapperScan("com.chigga.*.mapper") // MyBatis-plus 扫描 Mapper 文件夹
public class ChiggaApplication {
    public static void main(String[] args) {
        SpringApplication.run(ChiggaApplication.class, args);
    }
}